package cn.trs.common.utils;

import ch.qos.logback.core.PropertyDefinerBase;
import cn.hutool.core.net.NetUtil;

/**
 * @version 1.0
 * @author:TRS
 * @create:2023/3/20 11:49
 * @description:
 * @ClassName: IPLogDefiner
 * @company TRS
 */
public class IPLogDefiner extends PropertyDefinerBase {

    @Override
    public String getPropertyValue() {
        return String.valueOf(NetUtil.ipv4ToLong(NetUtil.getLocalhostStr()));
    }
}
